package cn.sh.yhk.controller.basic;

import cn.sh.yhk.service.basic.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IDEA
 * author:Yhk
 * Date:2019/1/11
 * Time:1:00 PM
 */
@RestController
@RequestMapping("/session")
public class SessionController {

//
//    @Resource
//    RedisOperationsSessionRepository redisOperationsSessionRepository;

    @Resource
    UserService userService;

//
//    @PostMapping("/delete/{sessionid}")
//    BasicVo logoutsession(@PathVariable("sessionid") String sessionid) {
//        redisOperationsSessionRepository.deleteById(sessionid);
//        return BasicVo.success("踢出成功");
//    }
//
//    @PostMapping("/list")
//    BasicVo logoutsession() {
//        return BasicVo.success("踢出成功");
//    }
//
//    private String base64Decode(String base64Value) {
//        byte[] decodedCookieBytes = Base64.getDecoder().decode(base64Value);
//        return new String(decodedCookieBytes);
//    }
}
